//
//  BZTextViewController.swift
//  weibo
//
//  Created by zzx on 2017/7/23.
//  Copyright © 2017年 zzx. All rights reserved.
//

import UIKit

class BZTextViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.view.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
        
        setupNavi()
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
    //MARK:- 设置导航栏
    func setupNavi() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(clickPushButton))
        
    }
    
    @objc fileprivate func clickPushButton() {
        
        let textView = BZTextViewController()
        
        self.navigationController?.pushViewController(textView, animated: true)
        
    }
    

}
